import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionReply
    
    export  class SDominionReply extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionReply();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.inviteId.__write(arg1);
            this.replyId.__write(arg1);
            arg1.writeInt(this.reply);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.inviteId = new DominionId();
            this.inviteId.__read(arg1);
            this.replyId = new DominionId();
            this.replyId.__read(arg1);
            this.reply = arg1.readInt();
            return;
        }

        public /* const */_type: int=2076;

        public /* var */inviteId: DominionId;

        public /* var */replyId: DominionId;

        public /* var */reply: int;

        public static /* var */_regist: SDominionReply;
    }

            SDominionReply._regist = new SDominionReply(true);
        